package de.wiroo.setup.web;

import org.apache.wicket.model.IModel;

import de.wiroo.setup.domain.Whole;
import de.wiroo.setup.web.common.CrudPage;
import de.wiroo.setup.web.common.DetailsPanel;
import de.wiroo.setup.web.common.FormPanel;
import de.wiroo.setup.web.common.IServiceBindings;
import de.wiroo.setup.web.common.TablePanel;
import de.wiroo.setup.web.comp.WholeDetails;
import de.wiroo.setup.web.comp.WholeForm;
import de.wiroo.setup.web.comp.WholeServiceBindings;
import de.wiroo.setup.web.comp.WholeTable;


public class WholeCrudPage extends CrudPage<Whole> {

	public WholeCrudPage() {
		super();
	}

	@Override
	protected IServiceBindings<Whole, ?> createServiceBindings() {
		return new WholeServiceBindings();
	}

	@Override
	protected FormPanel<Whole> createFormPanel(String id, IModel<Whole> model,
			IServiceBindings<Whole, ?> serviceBindings) {
		return new WholeForm(id, model, serviceBindings);
	}

	@Override
	protected TablePanel<Whole> createTablePanel(String id, IServiceBindings<Whole, ?> serviceBindings) {
		return new WholeTable(id, serviceBindings);
	}

	@Override
	protected DetailsPanel<Whole> createDetailsPanel(String id, IModel<Whole> model,
			IServiceBindings<Whole, ?> serviceBindings) {
		// TODO ...
		return new WholeDetails(id, model, serviceBindings);
	}

	

}
